<?php

include("global.php");

@ini_set("max_execution_time",120);

 if($step==""){
 print "Upgrade to v17<br><br>";
 print "READ upgrade.txt documentation before proceeding!<br>";
 print "DO NOT run this file if you dont want to upgrade!<br>";
 print "BACKUP data files before running this upgrade!<br>";
 print "<br>";
 print "<a href=\"upgrade_to17.php?step=2\">Upgrade!</a>";
 }

 //convert to topic num from timestamp id
 if($step==2){

 	writedata($maindatadir."/config.php","",3);
 	writedata($maindatadir."/config.php","",4);
 
 	print "UPGRADE IS FINISHED!";
 }//step 2


?>
